<?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

/**
 * This file contains the Form_Page class.
 *
 * PHP version 5
 *
 * This file is part of Majic - A rapid-development web application framework
 * for PHP 5.
 *
 * Majic is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option)
 * any later version.
 *
 * Majic is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Majic. If not, see <http://www.gnu.org/licenses/>.
 *
 * @package     Form
 * @author      Michael J. I. Jackson <mjijackson@gmail.com>
 * @copyright   2007-2008 Michael J. I. Jackson
 * @license     http://www.gnu.org/licenses/lgpl-3.0.txt GNU LGPL 3.0
 * @version     SVN: $Id: Page.php 34 2008-07-19 04:50:53Z mjijackson $
 */

/**
 * Represents one page of a multi-page form.
 *
 * @package     Form
 * @author      Michael J. I. Jackson <mjijackson@gmail.com>
 */
class Form_Page extends Form
{

    private $name;
    private $controller;

    /**
     * Constructor. Sets the name of this page.
     *
     * @param   string      $name       The name to use for this page
     * @access  public
     */
    public function __construct($name)
    {
        $this->name = $name;
        parent::__construct();
    }

    /**
     * Gets this page's form controller.
     *
     * @return  Form_Controller         This page's form controller
     * @access  public
     */
    public function getController()
    {
        return $this->controller;
    }

    /**
     * Sets this page's form controller.
     *
     * @param   Form_Controller   $controller       The form controller to use
     *                                              for this page
     * @return  void
     * @access  public
     */
    public function setController(Form_Controller $controller)
    {
        $this->controller = $controller;
    }

    public function getNext($form)
    {

    }

}

?>
